﻿using System;
using System.Collections.Generic;
using System.Text;
using Flexible.Interfaces;

namespace Flexible.Implementions.Bases
{
    class UserSetting : IUserSetting
    {
        public UserSetting(string name, string description, string category, Type valueType, object defaultValue, ISettingEditor settingEditor)
        {
            this.Name = name;
            this.DefaultValue = description;
            this.Category = category;
            this.ValueType = valueType;
            this.DefaultValue = defaultValue;
            this.SettingEditor = settingEditor;
        }

        #region IUserSetting Members

        public string Name
        {
            get;
            private set;
        }

        public string Description
        {
            get;
            private set;
        }

        public string Category
        {
            get;
            private set;
        }

        public Type ValueType
        {
            get;
            private set;
        }

        public object DefaultValue
        {
            get;
            private set;
        }

        public ISettingEditor SettingEditor
        {
            get;
            private set;
        }

        #endregion
    }
}
